package com.aos.erp.schools.remote.model;

import com.aos.erp.schools.enums.notice.DelStatus;
import com.aos.erp.schools.enums.notice.NoticeType;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.Date;

@Data
@ApiModel("通知公告")
public class NoticeInfo {
    @ApiModelProperty(hidden=true, value="公告ID")
    private long id;

    @ApiModelProperty(hidden=true, value="公告类型：notice为公告；msg为消息")
    private NoticeType noticeType = NoticeType.notice;

    @ApiModelProperty(hidden=true, value="是否删除：del_no为未删除；del_yes为已删除")
    private DelStatus isDel = DelStatus.del_no;

    @ApiModelProperty(hidden=true, value="公告标题, 100字符内")
    private String noticeTitle;

    @ApiModelProperty(hidden=true, value="公告内容：5000字符内")
    private String noticeContent;

    @ApiModelProperty(value = "弹窗提示开始时间",hidden=true)
    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss")
    private Date tipsStartTime;

    @ApiModelProperty(value = "弹窗提示截止时间",hidden=true)
    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss")
    private Date tipsEndTime;

    @ApiModelProperty(hidden=true, value="创建人")
    private String createUser;

    @ApiModelProperty(value = "创建时间",hidden=true)
    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss")
    private Date createTime;

    @ApiModelProperty(hidden=true, value="修改人")
    private String updateUser;

    @ApiModelProperty(value = "修改时间",hidden=true)
    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss")
    private Date updateTime;
}
